The Temporary environment is accessed through the set and unset commands. This environment only applies to the currently loaded exploit module; switching to another exploit via the use command will result in the Temporary environment for the current module being swapped out with the environment of the new module. If no exploit is currently active, the set and unset commands will not be available. Switching back to the original exploit module will result in the original environment being restored. Inactive Temporary environments are simply stored in memory and activated once their associated module has been selected. The following example shows how the use command selects an active exploit and how the back command reverts to the main mode.
msf > use wins_ms04_045 msf wins_ms04_045 > set msf wins_ms04_045 > set FOO BAR FOO -> BAR msf wins_ms04_045 > set FOO: BAR msf wins_ms04_045 > back msf > use openview_omniback msf openview_omniback > set RED BLUE RED -> BLUE msf openview_omniback > set RED: BLUE msf openview_omniback > back msf > use wins_ms04_045 msf wins_ms04_045 > set FOO: BAR msf wins_ms04_045 >